
<div class="dropdown">
    <div class="btn-group">
    <button type="button" class="btn dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">游戏信息相关
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('cat_game_ver','查看版本')">查看游戏版本</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#"></a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="cat_game_conf()">查看游戏配置文件</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="all_func('cat_game_status','查看游戏进程状态')">查看游戏进程状态</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="all_func('cat_game_open_time','查看游戏开服时间')">查看游戏开服时间</a>
        </li>


    </ul>
        </div>&nbsp;&nbsp;
    <div class="btn-group">
   <button type="button" class="btn dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">游戏更新相关
        <span class="caret"></span>
    </button>
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('update_game','更新游戏')">更新游戏</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="all_func('update_and_restart_game','更新并重启游戏')">更新并重启游戏</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="">更新游戏配置</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="">更新单个文件</a>
        </li>

    </ul>
    </div>
    <div class="btn-group">
   <button type="button" class="btn dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">游戏安装/清档
        <span class="caret"></span>
    </button>
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('one_key_install_game','一键安装游戏')">一键安装游戏</a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#"></a>
        </li>
        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="all_func('one_key_truancate','一键清档')">一键清档</a>
        </li>


    </ul>
    </div>&nbsp;&nbsp;
<div class="btn-group">
   <button type="button" class="btn dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">热更新相关
        <span class="caret"></span>
    </button>
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="">上传更新包</a>
        </li>


        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#"></a>
        </li>

        <li role="presentation">
            <a role="menuitem" tabindex="-1" href="#" onclick="">reload 进程相关</a>
        </li>
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('hot_update_example1','热更新配置')">热更新配置</a>
        </li>
             <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('hot_update_example2','热更新example2')">热更新example2</a>
        </li>

    </ul>
    </div>
    <div class="btn-group">
   <button type="button" class="btn dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">游戏启动/停止相关
        <span class="caret"></span>
    </button>
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('stop_game','停止游戏')">停止游戏</a>
        </li>
            <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('start_game','启动游戏')">启动游戏</a>
        </li>
            <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('restart_game','重启游戏')">重启游戏</a>
        </li>



    </ul>
    </div>

    <div class="btn-group">
   <button type="button" class="btn dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">修改游戏配置相关
        <span class="caret"></span>
    </button>
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
        <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('update_opentime','更新开服时间')">更新开服时间</a>
        </li>
            <li role="presentation">
           <a role="menuitem" tabindex="-1" href="#" onclick="all_func('update_server_name','更新游戏名字')">更新游戏名字</a>
    </ul>
    </div>


</div>

<hr>
{% include "game/search_form.html"  %}
   <div id="mytable">
     <table class="table table-striped" id="gridtable" width="100%" border="1" cellspacing="0" >
        <thead>
        <tr>
            <th><input type="checkbox" name="check" id="all"/> </th>
            <th>ID</th>
            <th>游戏名</th>
            <th>服务器</th>
            <th>game_id</th>
            <th>用户名</th>
            <th>Result</th>
        </tr>
        </thead>
        {% for i in posts  %}
            <tr>
            <td width="5%"><input   type="checkbox" name="check_box" value="{{ i.id }}" /> </td>
            <td width="5%">{{ i.id }}</td>
            <td width="10%"  >{{ i.name }}</td>
                <td width="10%" class="success" >{{ i.server }}</td>
            <td width="10%" class="active" >{{ i.game_id }}</td>
            <td width="10%" class="active" >{{ i.game_user }}</td>
            <td width="55%"></td>

            </tr>
        {% endfor %}
    </table>
   </div>
   <hr>
     <div class="text-center">
    <label for="select">每页数据条数:</label>
    <select  id="mySelect">
        <option>0</option>
        <option selected="selected">10</option>
        <option>20</option>
        <option>30</option>
    </select>&nbsp;&nbsp;&nbsp;&nbsp;


    <div class="text-right">
    <ul class="pagination pagination-lg">
        <li class="disabled"><a href="#">&laquo;</a></li>
        {% for var in pagelist %}
            {% ifequal var curpage  %}
            <li class="active"><a href="{% url url_name %}?curpage={{var}}&allpage={{allpage}}"> {{var}}</a></li>

            {% else %}
                <li><a href="{% url url_name %}?curpage={{var}}&allpage={{allpage}}">{{var}}</a></li>
                {% endifequal %}
        {% endfor %}
    <li ><a href="#">&raquo;</a></li>
    </ul>
    </div>
    </div>
    <hr>
    <!--jqGrid 浏览导航栏所在-->
<p style="display:none">默认隐藏</p>
<!-- 模态框（Modal） -->
<div class="modal fade" id="mymodal"  >
    <div class="modal-dialog" style="width:520px;">
        <div class="modal-content">
            <p><button class="close" type="button" data-dismiss="modal">×</button></p>
                <hr />
                <p id="label_for_edit"  name="label_modal" class="text-center">aaaa</p>
                <!-- 模态弹出窗内容 -->
         <!-- <div class="modal-body">
            <textarea rows="2" cols="50">在这里输入回复</textarea>

         </div> -->
         <form id="myformid"  class="form-horizontal" method="POST" role="form"  onSubmit="return false;">
          <input type="hidden" name="csrfmiddlewaretoken" value="{{csrf_token}}">
          <input type="hidden" name="id" value="">
        {% for field in form %}
          <div class="form-group"></div>
          <label for={{ field.label }} class="col-sm-3 control-label">{{ field.label }}</label>
          <div class="col-sm-8">{{ field }} </div>
         {{ field.errors }}
     {% endfor %}
        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">

                            <button type="submit" class="btn btn-success" onclick="postform()">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <button  id="btn2" type="button" class="btn btn-primary"   data-dismiss="modal">关闭</button>
                        </div>
                        </div>
        </form>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->



{#<div class="modal fade" id="mymodal_opentime"  >#}
{#    <div class="modal-dialog" style="width:520px;">#}
{#        <div class="modal-content">#}
{#            <p><button class="close" type="button" data-dismiss="modal">×</button></p>#}
{#                <hr />#}
{#                <p id="label_for_edit"  name="label_modal" class="text-center">修改开服时间</p>#}
{#                <!-- 模态弹出窗内容 -->#}
{#         <!-- <div class="modal-body">#}
{#            <textarea rows="2" cols="50">在这里输入回复</textarea>#}
{##}
{#         </div> -->#}
{#         <form id="myformid"  class="form-horizontal" method="POST" role="form"  onSubmit="return false;">#}
{#          <input type="hidden" name="csrfmiddlewaretoken" value="{{csrf_token}}">#}
{#          <div class="form-group"></div>#}
{#          <label for='open_time' class="col-sm-3 control-label">开服时间</label>#}
{#          <div class="col-sm-8"><input type="text"  name="open_time" value=""> </div>#}
{#        <div class="form-group">#}
{#                            <div class="col-sm-offset-2 col-sm-10">#}
{##}
{#                            <button type="submit" class="btn btn-success" onclick="javascript(void(0))">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#}
{#                            <button  id="btn2" type="button" class="btn btn-primary"   data-dismiss="modal">关闭</button>#}
{#                        </div>#}
{#                        </div>#}
{#        </form>#}
{#         </div>#}
{#      </div><!-- /.modal-content -->#}
{#</div><!-- /.modal -->#}
{##}
{##}
{#<div class="modal fade" id="mymodal_server_name"  >#}
{#    <div class="modal-dialog" style="width:520px;">#}
{#        <div class="modal-content">#}
{#            <p><button class="close" type="button" data-dismiss="modal">×</button></p>#}
{#                <hr />#}
{#                <p id="label_for_edit"  name="label_modal" class="text-center">修改游戏名字</p>#}
{#                <!-- 模态弹出窗内容 -->#}
{#         <!-- <div class="modal-body">#}
{#            <textarea rows="2" cols="50">在这里输入回复</textarea>#}
{##}
{#         </div> -->#}
{#         <form id="myformid"  class="form-horizontal" method="POST" role="form"  onSubmit="return false;">#}
{#          <input type="hidden" name="csrfmiddlewaretoken" value="{{csrf_token}}">#}
{#          <div class="form-group"></div>#}
{#          <label for='open_time' class="col-sm-3 control-label">开服时间</label>#}
{#          <div class="col-sm-8"><input type="text"  name="open_time" value=""> </div>#}
{#        <div class="form-group">#}
{#                            <div class="col-sm-offset-2 col-sm-10">#}
{##}
{#                            <button type="submit" class="btn btn-success" onclick="javascript(void(0))">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#}
{#                            <button  id="btn2" type="button" class="btn btn-primary"   data-dismiss="modal">关闭</button>#}
{#                        </div>#}
{#                        </div>#}
{#        </form>#}
{#         </div>#}
{#      </div><!-- /.modal-content -->#}
{#</div><!-- /.modal -->#}
{##}


